public class Pessoa extends Thread{
	String classe;
	int pid;
	Parking parking;
	public Pessoa ( String classe , int pid, Parking parking ){
		this.classe = classe;
		this.pid    = pid;
		this.parking= parking;
		
	}
	public void run(){
		try{
			sleep( ( int )(Math.random()*9000 ));
			parking.in( classe , pid);
			sleep( ( int )(Math.random()*7000 ));
			parking.out( classe , pid);
		}catch(Exception e ){}
	}

}

